package classconverstation.cscl.ist.psu.edu.client.services;

import java.util.ArrayList;

import classconverstation.cscl.ist.psu.edu.client.messengers.Course;
import classconverstation.cscl.ist.psu.edu.client.messengers.User;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("login")
public interface LoginService extends RemoteService {

	ArrayList<Course> getEnrolledCourses(String uid);

	ArrayList<Course> getAllCourses();

	boolean insertUserInDB(User u);

	boolean storeUserInSession(User user);

	ArrayList<Course> getCoursesForApproval(String userid);
	
    String getUserOpenId();

	User loginFromSession();

	boolean markAsEnrolled(Course c, String uid);
}
